package com.bll.imple.mymienAction;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.bean.MymienBean;
import com.bll.Action;
import com.dao.MymienDao;

public class ZhidingMymienAction implements Action{

	public String execute(HttpServletRequest request,
			HttpServletResponse response) {
		String lujing = request.getParameter("lujing");
		String values[] = request.getParameterValues("cbx");
		MymienDao dao=new MymienDao();
		int id=Integer.parseInt(values[0]);
		MymienBean bean=dao.SelectById(id);
		long com1=System.currentTimeMillis();
		System.out.println("com1:"+com1);
		bean.setComment1(com1+"");
		dao.UpdateOne(bean);
		return lujing+"?lujing="+request.getParameter("lujing1")+"&typeId="+request.getParameter("typeId");
	}
	
	
}
